<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link type="image/x-icon" rel="shortcut icon" href="__ROOT__/favicon.ico" />
<link rel="stylesheet" type="text/css" href="__CSS__/global.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/article-index.css" />
<title>文章管理-HDCWS后台管理系统</title>
</head>
<body>
<div id="dcWrap">
	<include file="Pub:header" />
	<include file="Pub:menu" />
 	<div id="dcMain">
		<div id="urHere">管理中心<b>&gt;</b><strong>文章列表</strong></div>
		<div id="mainBox">
	    	<h3>
	    		<a href="{:U('Article/add?tid=3')}" class="actionBtn add">添加关于公司</a>
	    		<a href="{:U('Article/add?tid=2')}" class="actionBtn add">添加团队成员</a>
	    		<a href="{:U('Article/add?tid=1')}" class="actionBtn add">添加普通文章</a>
	    		文章列表
	    	</h3>
		    <div class="filter">
				<form action="{:U('Article/index')}">
					<select name="cid">
						<option value="">全部</option>
						<volist name="catList" id="vo">
						<option value="{$vo.id}">{$vo.name}</option>
						</volist>
					</select>
			   		<input name="key" type="text" class="inpMain" value="" size="20" placeholder="输入标题或关键词" />
			     	<input name="submit" class="btnGray" type="submit" value="搜索" />
			    </form>
			</div>
	        <div id="list">
			    <form name="action" action="{:U('Article/del')}" onsubmit="if(!confirm('确定删除吗?')) return false;">
				    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
				    	<tr>
					      	<th width="22" align="center"><input name="chkall" type="checkbox" id="chkall" onclick="selectcheckbox(this.form)" value="check"></th>
					      	<th align="left">文章标题</th>
					      	<th width="100" align="left">文章分类</th>
					      	<th width="80" align="left">版块分类</th>
					      	<th width="80" align="left">文章模型</th>
					      	<th width="120" align="center">导航链接</th>
					      	<th width="120" align="center">添加时间</th>
					      	<th width="50" align="center">状态</th>
					      	<th width="150" align="center">操作</th>
				     	</tr>
				     	<volist name="list" id="vo">
				      	<tr>
							<td align="center"><input type="checkbox" name="id[]" value="{$vo.id}"></td>
							<td>{$vo.title}</td>
							<td><empty name="vo.cname">无<else />{$vo.cname}</empty></td>
							<td>
								<switch name="vo.tid">
								<case value="3">关于公司</case>
								<case value="2">公司团队</case>
								<default />普通
								</switch>
							</td>
						  	<td>
								<switch name="vo.mid">
								<case value="3">特殊图片</case>
								<case value="2">单页</case>
								<default />普通
								</switch>
						  	</td>
						  	<td align="center">Article/v?tid={$vo['tid']}&cid={$vo['cid']}&id={$vo['id']}</td>
						  	<td align="center">{$vo.time}</td>
						   	<td align="center">
								<switch name="vo.status">
								<case value="0"><span style="color:#F75557;">禁用</span></case>
								<default /><span style="color:#45BA6C;">启用</span>
								</switch>						   	
						   	</td>
						  	<td align="center">
						  		<a href="__ROOT__/Article/v?tid={$vo['tid']}&cid={$vo['cid']}&id={$vo['id']}" target="_blank">前台查看</a>&nbsp;|&nbsp;
				           		<a href="{:U('Article/edit?tid=' . $vo['tid'] . '&id='. $vo['id'])}">编辑</a>&nbsp;|&nbsp;
				           		<a href="javascript:void(0)" data-href="{:U('Article/del?id='. $vo['id'])}" onclick="if(confirm('确定删除吗?')) top.location.href=this.getAttribute('data-href')">删除</a>
				           	</td>
				     	</tr>
				     	</volist>
			    	</table>
			    	<div class="action">
			     		<input name="submit" class="btn" type="submit" value="删除">
			    	</div>
			    </form>
	    	</div>
	    	<div class="clear"></div>
	    	<div class="pager">{$pageLink}</div>
	    </div>
	</div>
	<include file="Pub:footer" />
</div>
</body>
</html>